package com.specialized.common.core.utils;

import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;
import com.specialized.common.core.domain.MapAddr;
import com.specialized.common.core.domain.Result;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

/**
 * @Author：djh
 * @Package：com.specialized.orders.config
 * @Project：Specialized-Cloud
 * @name：mapconfig
 * @Date：2024/7/24 16:45
 */
@Component
@Log4j2
public class MapUtil {


    public static String findAddr(String addr){
        String getLongitudelatitude = HttpUtil.get("restapi.amap.com/v3/geocode/geo?key=793774c415f9f7678ea8a85e54fa61b7&output=JSON&address=" + addr);
        return getLongitudelatitude;
    }



}
